package cn.it.ygh.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.it.ygh.pojo.Apply;
import cn.it.ygh.pojo.HouseInfo;
import cn.it.ygh.pojo.Page;
import cn.it.ygh.pojo.Renter;
import cn.it.ygh.pojo.User;

public interface HouseDealService {
	public List<HouseInfo> getHouseInfo(int minPrice, int maxPrice,int minArea,int maxArea,int layout);
	public Page<HouseInfo> findByPage(int currentPage,int minPrice,int maxPrice,
			int minArea,int maxArea, int layout,String keyword);
	public int selectCount(Map<String, Object> map);
	public int selectCount1(Map<String, Object> map);
	public int selectCount2(Map<String, Object> map);
	public Page<HouseInfo> findByPage1(int currentPage,int minPrice,int maxPrice, int layout,String keyword);
	public Page<HouseInfo> findByPage2(int currentPage,int minPrice,int maxPrice, int layout,String keyword);
	public HouseInfo getIdInfo(int id);
	public void saveDataInDB(int houseId, String userAccount, String houseAgentAccount, Date applyTime,
			String houseAddress, String houseProvince, String houseCity);
	public Page<Renter> findByPage3(int currentPage, int houseId);
	public int selectCount3(Map<String, Object> map);
	public void saveDataInDB1(int houseId,  String houseAddress,
			String houseProvince, String houseCity,User u);
	
	public User getUserById(int userId);
	
	public List<Renter> getRenterById(int houseId);
}
